﻿using System;
using System.Collections.Generic;
using System.Text;

using SFML;
using SFML.Graphics;

namespace jedlik
{
    public abstract class GameObjectBase
    {
        protected Sprite mySprite;
        public Sprite Sprite
        {
            get { return mySprite; }
            set { mySprite = value; }
        }

        public float X
        {
            get { return Sprite.Position.X; }
            set { Sprite.Position = new Vector2(value, Sprite.Position.Y); }
        }
        public float Y
        {
            get { return Sprite.Position.Y; }
            set { Sprite.Position = new Vector2(Sprite.Position.X, value); }
        }
    }
}
